package hz.mobileproject.pda.toolsmanager.adapter;

import android.content.Context;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.blankj.utilcode.util.ToastUtils;

import org.xutils.view.annotation.ViewInject;

import java.util.List;

import hz.mobileproject.pda.R;
import hz.mobileproject.pda.toolsmanager.bean.ToolRecyclerItemBean;
import hz.mobileproject.pda.toolsmanager.bean.WaiJieToolsBean;
import hz.mobileproject.pda.ui.base.BaseCustomAdapter;

/**
 * Created by Alex on 2018/4/27.
 */

public class ToolRecyclerItemAdapter extends BaseCustomAdapter<ToolRecyclerItemBean,ToolRecyclerItemAdapter.ViewHolder> {


    public ToolRecyclerItemAdapter(Context mContext, List<ToolRecyclerItemBean> list) {
        super(mContext, list);
    }

    @Override
    protected int bindView() {
        return R.layout.item_waijie_tools;
    }

    @Override
    protected ViewHolder createViewHolder() {
        return new ViewHolder();
    }

    @Override
    protected void bindData(final int position, View convertView, ViewHolder viewHolder) {
        ToolRecyclerItemBean bean = mList.get(position);
//        viewHolder.tv_tool_lx.setText(bean.getLeixing());
//        viewHolder.tv_tool_name.setText(bean.getName());

//        viewHolder.rl_delete.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                ToastUtils.showShort(position + "删除" );
//            }
//        });

    }

    class ViewHolder {
//        @ViewInject(R.id.tv_tool_lx)
//        private TextView tv_tool_lx;
//        @ViewInject(R.id.tv_tool_name)
//        private TextView tv_tool_name;
//        @ViewInject(R.id.rl_delete)
//        private RelativeLayout rl_delete;

    }
}
